package com.hsh.gaoqianlianmeng.controller;

import com.hsh.gaoqianlianmeng.common.Result;
import com.hsh.gaoqianlianmeng.service.ChuanMeiService;
import com.hsh.gaoqianlianmeng.service.YangBGService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("chuanMei")
public class ChuanMeiController {

    @Resource
    private ChuanMeiService chuanMeiService;

    /**
     * 美团导出  -> 传美导入
     *
     * @param dateStr
     * @param shopName
     * @param password
     * @return
     */
    @GetMapping("/mtExportToCmImport")
    public Result mtExportToCmImport(String dateStr, String shopName, String password) {
        return chuanMeiService.mtExportToCmImport(dateStr, shopName, password);
    }


    /**
     * 传美导出  -> 美团导入
     *
     * @param dateStr
     * @param shopId
     * @param expressCompanyId
     * @param shopName
     * @return
     */
    @GetMapping("/cmExportToMtImport")
    public Result cmExportToMtImport(String dateStr, String shopId, String expressCompanyId, String shopName) {
        return chuanMeiService.cmExportToMtImport(dateStr,shopId,expressCompanyId, shopName);
    }

}
